1、功能说明
    1、GTIMA2_CH2上升沿计算频率

2、使用环境
    软件开发环境：KEIL MDK-ARM V5.34
    软件开发环境：IAR EWARM 8.50.1

    芯片支持：
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787

3、使用说明
    系统配置；
        1、时钟源：HSI+PLL
        2、系统时钟频率：
            M7核: 600MHz
        3、中断：
			GTIMA2_CH2上升沿中断打开
        4、端口配置：
			PA7选择为GTIMA2_CH2输入
			PA3选择为IO 输出
        5、TIM：
			GTIMA2_CH2上升沿捕获中断打开

    使用方法：
        1、编译后打开调试模式，连接PA3与PA7，将变量TIMxFreq添加到watch窗口
        2、通过调试窗口修改gOnePulsEn为1，PA3会有电平翻转
        3、程序控制PA3电平翻转后，查看TIMxFreq计算的频率值

4、注意事项
    无
    
1. Function description
     1. GTIMA2_CH2 rising edge calculation frequency

2. Development environment
    Software development environment: KEIL MDK-ARM V5.34
    Software development environment: IAR EWARM 8.50.1

    Supported chips:
        N32H730  
        N32H735   
        N32H735EC
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787

3. How to use
   System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
             M7 Core:     600MHz
		3. Interruption:
			 GTIMA2_CH2 rising edge interrupt is turned on
		4. Port configuration:
			 PA7 is selected as GTIMA2_CH2 input
			 PA3 is selected as IO output
		5. TIM:
			 GTIMA2_CH2 rising edge capture interrupt is turned on
     Instructions:
         1. After compiling, open the debug mode, connect PA3 and PA7, and add the variable TIMxFreq to the watch window
         2. Modify gOnePulsEn to 1 in the debug mode and flip the PA3 pin level
         3. After the program controls the level of PA3 to flip, check the frequency value calculated by TIMxFreq
4. Attention
    None

